extends Node


var pick_up = load("res://audios/se/pickup.mp3")
var select = load("res://audios/se/select.mp3")
var ingre = load("res://audios/se/ingre.mp3")
var huhuhu = load("res://audios/se/fan.mp3")
var boom = load("res://audios/se/explosion.mp3")
var shoot = load("res://audios/se/launcher.mp3")
var falling = load("res://audios/se/falling.mp3")
var end = load("res://audios/bgm/sekibaku.mp3")
var magic = load("res://audios/se/magic.mp3")
var door = load("res://audios/se/knocking_a_wooden_door.mp3")


var player:AudioStreamPlayer

func _ready() -> void:
	player = AudioStreamPlayer.new()
	add_child(player)
	
	
func play(sound):
	player.stream = sound
	player.play()
	
func play_pick_up():play(pick_up)
func play_select():play(select)
func play_ingre():play(ingre)
func play_huhuhu():play(huhuhu)
func play_boom():play(boom)
func play_shoot():play(shoot)
func play_falling():play(falling)
func play_end():play(end)
func play_magic():play(magic)
func play_door():play(door)

func stop():
	if player and player.playing:
		player.stop()
